/**
 * Author: xing
 * Date: 2016.3.17
 * 该文件用于显示或者隐藏当前文件夹的文件用的，包括系统文件
 */

var shell = new ActiveXObject('WScript.Shell');
var path = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\';
try{
	k = shell.regread(path + 'ShowSuperHidden');
	if(k==1){
		//代表目前处于显示的状态
		shell.regwrite(path + 'Hidden', 2, 'REG_DWORD');
		shell.regwrite(path + 'ShowSuperHidden', 0, 'REG_DWORD');
	}else{
		shell.regwrite(path + 'Hidden', 1, 'REG_DWORD');
		shell.regwrite(path + 'ShowSuperHidden', 1, 'REG_DWORD');
	}
}
catch(e){
	//代表目前处于显示的状态
	shell.regwrite(path + 'Hidden', 2, 'REG_DWORD');
	shell.regwrite(path + 'ShowSuperHidden', 0, 'REG_DWORD');
}

shell.SendKeys('{f5}+{f10}e');